import Vue from 'vue'
import Router from 'vue-router'
import Home from 'example/views/home'
import scrollX from 'example/views/scroll-x'
import scrollY from 'example/views/scroll-y'
import sampleScroll from 'example/views/sample-scroll'
import indexList from 'example/views/index-list'
import slide from 'example/views/slide'
import verticalSlide from 'example/views/vertical-slide'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/scroll-x',
    name: 'scrollX',
    component: scrollX
  },
  {
    path: '/scroll-y',
    name: 'scrollY',
    component: scrollY
  },
  {
    path: '/sample-scroll',
    name: 'sampleScroll',
    component: sampleScroll
  },
  {
    path: '/index-list',
    name: 'indexList',
    component: indexList
  },
  {
    path: '/slide',
    name: 'slide',
    component: slide
  },
  {
    path: '/vertical-slide',
    name: 'vertical-slide',
    component: verticalSlide
  }]
})
